﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ch01
{
    public partial class Form10 : Form
    {
        public Form10()
        {
            InitializeComponent();
        }

        //窗体加载事件
        private void Form10_Load(object sender, EventArgs e)
        {
            MessageBox.Show("Load事件");
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
        //窗体关闭后的事件
        private void Form10_FormClosed(object sender, FormClosedEventArgs e)
        {
            MessageBox.Show("FormClosed事件");
        }
        //窗体关闭时的事件
        private void Form10_FormClosing(object sender, FormClosingEventArgs e)
        {
            MessageBox.Show("FormClosing事件");
        }

        private void Form10_Resize(object sender, EventArgs e)
        {
            label1.Text = "宽："+ Size.Width + "，高：" + Size.Height;
        }

        private void Form10_Click(object sender, EventArgs e)
        {
            //MessageBox.Show("Click事件");
        }

        private void Form10_DoubleClick(object sender, EventArgs e)
        {
            MessageBox.Show("DoubleClick事件");
        }
    }
}
